package com.bstek.bdf4.enums;

import cn.hutool.http.HttpStatus;


/**
 * @Title: DeptStatesEnum
 * @Description:
 * @Author: zxq
 * @Date: 2023/10/30 - 17:14
 */
public enum ResponseStatusEnum  implements IBaseEnum<Integer> {
    FORBIDDEN(HttpStatus.HTTP_FORBIDDEN,  "Forbidden"),
    UNAUTHORIZED(HttpStatus.HTTP_UNAUTHORIZED, "Unauthorized"),
    SUCCESS(HttpStatus.HTTP_OK, "OK"),
    BAD_REQUEST(HttpStatus.HTTP_BAD_REQUEST, "Bad Request"),
    SYSTEM_ERROR(HttpStatus.HTTP_INTERNAL_ERROR, "系统异常错误"),
    NOT_EXIST(HttpStatus.HTTP_NOT_FOUND, "请求路径不存在");


    /**
     * 业务异常码
     */
    private Integer code;
    /**
     * 业务异常信息描述
     */
    private String msg;

    ResponseStatusEnum(Integer code, String msg) {
        initEnum(code,msg);
    }



}
